<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>员工管理</title>
    <%@ include file="/WEB-INF/views/common/common.jsp" %>
    <script type="text/javascript" src="/static/js/system/employee.js"></script>
</head>
<body>
<%--列表--%>
<table id="emp_datagrid"></table>
<%--列表顶部工具栏--%>
<div id="emp_toolbar">
    <%--<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="reload">添加</a>--%>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" id="change_btn" data-cmd="changeState">在职</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
</div>
<%--保存/编辑 对话框--%>
<div id="emp_dialog">
    <form method="post" id="emp_form">
        <input type="hidden" name="id">
        <table align="center" style="margin-top:15px" >
            <tr>
                <td>员工账号</td>
                <td><input class="easyui-textbox" name="username"></td>
            </tr>
            <tr>
                <td>真实名称</td>
                <td><input class="easyui-textbox" name="realName"></td>
            </tr>
            <tr>
                <td>电话</td>
                <td><input class="easyui-textbox" name="tel"></td>
            </tr>
            <tr>
                <td>邮箱</td>
                <td><input class="easyui-textbox" name="email"></td>
            </tr>
            <tr>
                <td>所在部门</td>
                <td><input class="easyui-combobox" name="dept.id" data-options="
                                            url:'/department/depts',
                                            valueField: 'id',
                                            textField: 'name',
                                            panelHeight: 'auto'"
                ></td>
            </tr>
            <tr>
                <td>超级管理员</td>
                <td><input class="easyui-combobox" name="admin" data-options="
                                            valueField: 'value',
                                            textField: 'text',
                                            panelHeight: 'auto',
                                            data: [{
                                                    text: '是',
                                                    value: '1'
                                                },{
                                                    text: '否',
                                                    value: '0'
                                                }]">
                </td>
            </tr>
             <tr>
                 <td>角色</td>
                 <td><input id="role_id" class="easyui-combobox" name="role.id" data-options="
                                                 valueField: 'id',
                                                 textField: 'name',
                                                 panelHeight: 'auto',
                                                 multiple:'true',
                                                 url:'/role/roles'">
                 </td>
             </tr>

        </table>
    </form>
</div>

<%--保存/编辑 对话框 底部工具栏 --%>
<div id="dialog_buttons">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save">保存</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">关闭</a>
</div>
</body>
</html>